package com.design.interpreter;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Variable extends AbstractExpression{

    private String key;

    @Override
    public int interpreter(Context context) {
        return context.getValue(key);
    }
}
